page_dddbrz = (state={},action)->
  switch action.type
    when 'DDDBRZ/GET_LIST_START'
      Object.assign {},state,{isLoading:true}
    when 'DDDBRZ/GET_LIST_COMPLETED'
      Object.assign {},state,{
        list:action.payload
        isLoading:false
        pageIndex:state.pageIndex+1
        completed:action.payload.length < 20
      }
    when 'DDDBRZ/REFRESH_LIST_START'
      Object.assign {},state,{
        list:[]
        isLoading:true
        refreshing:true
      }
    when 'DDDBRZ/REFRESH_LIST_COMPLETED'
      Object.assign {},state,{
        list:action.payload
        isLoading:false
        refreshing:false
      }
    else
      state

module.exports = page_dddbrz
